﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SDL;

namespace BusinessLogic
{
    public static class UserProfileExtensions
    {
        public static UserProfileInfo getByUser(this UserInfo user)
        {
            var n = new UserProfileInfo();
            n["id"] = user.Id;
            n.Run("user_profile.getByUser");
            return n.getOne<UserProfileInfo>();
        }
    }
}
